﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using NetCore.BLL;
using NetCore.Model;

namespace NetCore.Member.Web.Controllers
{
    public class HomeController : AreaController
    {
        public IUserService mService { get; set; }
        public IActionResult Index(string userid)
        {
          
            if (string.IsNullOrWhiteSpace(userid))
            {
                userid = this.UserId;
            }
            var CurrentUser = mService.GetById(userid);
            
            return View(CurrentUser);
        }

     
    }
}
